﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/TicketManagement.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" Inherits="TicketManagement.Account.Profile" %>
<%@ Register src="../Template/uFooter.ascx" tagname="uFooter" tagprefix="uc1" %>
<%@ Register src="../Template/uSidebar.ascx" tagname="uSidebar" tagprefix="uc2" %>
<%@ Register src="../Template/uHeader.ascx" tagname="uHeader" tagprefix="uc3" %>
<%@ Register src="../Template/uMenu.ascx" tagname="uMenu" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../Assets/Scripts/AccountProfile.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="wrapper">
        <div class="clear10"></div>
        <uc3:uHeader ID="uHeader1" runat="server" />

        <div class="clear10"></div>
        <uc4:uMenu ID="uMenu1" runat="server" />

        <div class="clear10"></div>
        <div class="body">

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr valign="top">
                        <td>     
                            <table width="100%" class="box-vang5" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td class="text-top">.:. Thay đổi thông tin</td>
                                    </tr>
                                </tbody>
                            </table>
                            <table class="box-vang5" width="100%" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td class="t-l"></td>
                                        <td class="t-c"></td>
                                        <td class="t-r"><label id="lblMessage" runat="server" class="color_khancap"></label></td>
                                    </tr>
                                    <tr class="light">
                                        <td class="c-l"></td>
                                        <td class="c-c" valign="top">
                                            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="font_11">
                                                <tbody>
                                                    <tr class="light">
                                                        <td width="150" class="td_11"><strong>Thông tin chủ tài khoản</strong></td>
                                                        <td width="15" class="td_11">&nbsp;</td>
                                                        <td class="td_11">
                                                            <strong>Mã khách hàng: <label id="lblAccountCode" runat="server"></label></strong> 
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2"><font color="#FF0000">Mật khẩu cũ</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input id="txtPassword" type="password" class="nd" size="20" runat="server">
                                                            <asp:CustomValidator ID="correctPasswordValidator" runat="server" ErrorMessage="Mật khẩu không đúng" CssClass="color_khancap" ControlToValidate="txtPassword"></asp:CustomValidator>
                                                            <asp:CustomValidator ID="requirePasswordValidator" runat="server" ErrorMessage="Mật khẩu không được rỗng" CssClass="color_khancap" ControlToValidate="txtPassword"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2"><font color="#FF0000">Mật khẩu mới</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input id="txtNewPassword" type="password" class="nd" size="20" runat="server">
                                                            <asp:CustomValidator ID="requireNewPassword" runat="server" ErrorMessage="Mật khẩu không được rỗng" CssClass="color_khancap" ControlToValidate="txtNewPassword"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Trạng thái</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input type="radio" id="rbtActive" name="active" value="1" runat="server" disabled/>  <label class="bld">Kích hoạt</label>
                                                            <input type="radio" id="rbtNotActive" name="active" value="0" runat="server" disabled/>  <label class="bld">Chưa Kích hoạt</label>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Hình thức khách hàng</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <asp:DropDownList ID="ddlAccountType" DataValueField="Id" DataTextField="name" runat="server">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Tên chủ thể sử dụng <font color="#FF0000">*</font><br>(Cá nhân / Công ty)</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input class="box_input nd" id="txtRealName" readonly="true" style="background-color:#CCCCCC" size="20" runat="server">
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Người đại diện</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input class="box_input nd" name="cty" value="" size="20" id="txtDelegateName" runat="server"></td>
                                                    </tr>

                                                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                        <ContentTemplate>
                                                            <tr class="light">
                                                                <td class="td_2">Quốc gia <font color="#FF0000">*</font></td>
                                                                <td class="td_2">:</td>
                                                                <td class="td_2">
                                                                    <asp:DropDownList ID="ddlCountry" DataValueField="Id" DataTextField="name" 
                                                                        runat="server" AutoPostBack="True" 
                                                                        onselectedindexchanged="ddlCountry_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </td> 
                                                            </tr>
                                                            <tr id="citybox" class="light">
                                                                <td class="td_2">Tỉnh, Thành phố <font color="#FF0000">*</font></td>
                                                                <td class="td_2">:</td>
                                                                <td class="td_2">
                                                                    <asp:DropDownList ID="ddlCity" DataValueField="Id" DataTextField="name" runat="server">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>

                                                    <tr class="light">
                                                        <td class="td_2">Địa chỉ <font color="#FF0000">*</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input class="box_input nd" id="txtAddress" size="20" runat="server"></td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Email chính <font color="#FF0000">*</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtEmail" class="box_input nd" size="20" runat="server">
                                                            <asp:CustomValidator ID="exitsEmail" runat="server" ErrorMessage="Email đã tồn tại" CssClass="color_khancap" ControlToValidate="txtEmail"></asp:CustomValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Email không được để trống" ControlToValidate="txtEmail"  CssClass="color_khancap"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Email phụ</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtTempEmail" class="box_input nd" size="20" runat="server">
                                                            <asp:CustomValidator ID="exitsTempEmail" runat="server" ErrorMessage="Email đã tồn tại" CssClass="color_khancap" ControlToValidate="txtTempEmail"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">ĐTDD<font color="#FF0000">*</font><br>(vd: <font color="#FF0000">0901234567</font>)</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtCellPhone" class="box_input nd" size="20" runat="server">
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Điện thoại bàn</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input name="tel" id="txtHomePhone" class="box_input nd" size="20" runat="server">
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Fax</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtFax" class="box_input nd" size="20" runat="server">
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Mã số thuế</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtTaxNumber" class="box_input nd" size="20" runat="server"></td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Số CMND </td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtIdNumber" readonly="true" style="background-color:#CCCCCC" class="box_input nd" size="20" runat="server"></td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Ngày sinh <font color="#FF0000">*</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtBirthday" class="box_input nd datePicker" size="20" runat="server" readonly>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Ngày không được rỗng" ControlToValidate="txtBirthday"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Trang chủ</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input class="box_input nd" id="txtWebsite" value="" size="20" runat="server">
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2 bld blue upper">Tên ngân hàng</td>
                                                        <td class="td_2">:</td>                  
                                                        <td class="td_2">
                                                            <asp:DropDownList ID="ddlBank" DataValueField="Id" DataTextField="name" runat="server">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2 bld blue upper">Số tài khoản ngân hàng</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input class="box_input nd bld" style="color:#00f" id="txtBankAccountNumber" size="20" runat="server"></td>
                                                    </tr>                
                                                                  
                                                    <tr class="light">
                                                        <td class="td_11" colspan="3"><strong>Upload bản scan giấy CMND</strong></td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Scan 1</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                        <br>
                                                            <asp:FileUpload ID="txtScan1" runat="server" />
                                                            <label id="lblFrontImage" runat="server"></label>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Scan 2</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                        <br>
                                                            <asp:FileUpload ID="txtScan2" runat="server" />
                                                            <label id="lblBackImage" runat="server"></label>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td colspan="3" class="td_2">
                                                            <div align="center">
                                                                <asp:Button ID="btnSave" runat="server" Text="Thay đổi" CssClass="buttonnew" 
                                                                    onclick="btnSave_Click" />
                                                                <asp:Button ID="btnReset" runat="server" Text="Làm lại" CssClass="buttonnew" />
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                        <td class="c-r"></td>
                                    </tr>
                                    <tr class="light">
                                        <td class="b-l"></td>
                                        <td class="b-c"></td>
                                        <td class="b-r"></td>
                                    </tr>
                                </tbody>
                            </table>
                            <br>
                        </td>
                        <td width="10">
                        </td>
                        <td width="180">
                            <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr>
                                        <td><img src="../Assets/images/spaces.gif" width="1" height="1"></td>
                                    </tr>
                                </tbody>
                            </table>
                            <uc2:uSidebar ID="uSidebar1" runat="server" />
                            <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td><img src="../Assets/images/spaces.gif" width="1" height="1"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>  
        <div class="clear20"></div>
        <div class="clear20"></div>
        <uc1:uFooter ID="uFooter1" runat="server" />

        <div class="clear"></div>    
    </div>
</asp:Content>
